package com.ruoyi.ring.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 生理周期设置对象 az_user_physiology_set
 * 
 * @author liuwp
 * @date 2025-09-30
 */
@Data
public class UserPhysiologySet extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 生理期天数 */
    @Excel(name = "生理期天数")
    private Long menstrualPeriodDays;

    /** 周期天数 */
    @Excel(name = "周期天数")
    private Long periodDays;

    /** 生理期开始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生理期开始日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    /** 生理期初始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生理期初始日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date initialDate;

    /** 是否生理期提醒 */
    @Excel(name = "是否生理期提醒")
    private String isMenstrualPeriod;

    /** 是否排卵期提醒 */
    @Excel(name = "是否排卵期提醒")
    private String isOvulationPeriod;

    /** 是否排卵日提醒 */
    @Excel(name = "是否排卵日提醒")
    private String isPeriodDays;

    /** 是否排卵期结束提醒 */
    @Excel(name = "是否排卵期结束提醒")
    private String isOvulationPeriodEnd;

    /** 提醒时间 */
    @Excel(name = "提醒时间")
    private String reminderTime;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("menstrualPeriodDays", getMenstrualPeriodDays())
            .append("periodDays", getPeriodDays())
            .append("startDate", getStartDate())
            .append("initialDate", getInitialDate())
            .append("isMenstrualPeriod", getIsMenstrualPeriod())
            .append("isOvulationPeriod", getIsOvulationPeriod())
            .append("isPeriodDays", getIsPeriodDays())
            .append("isOvulationPeriodEnd", getIsOvulationPeriodEnd())
            .append("reminderTime", getReminderTime())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
